-- GENERATED SPELL FOR [Strigid Screecher] --


function spell0_1996(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1996', 648, 1)
end

function spell1_1996(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1996', 0, 1)
end

function spell2_1996(pUnit, Event) --@Snatch,n/a--
pUnit:FullCastSpellOnTarget(50541,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1996', 6261, 1)
end

function Sorts_1996(pUnit, Event)
local choix_sorts_1996 = math.random(0, 2)
if choix_sorts_1996 == 0 then
pUnit:RegisterEvent('spell0_1996', 1, 1)
end
if choix_sorts_1996 == 1 then
pUnit:RegisterEvent('spell1_1996', 1, 1)
end
if choix_sorts_1996 == 2 then
pUnit:RegisterEvent('spell2_1996', 1, 1)
end
end

function mob1996_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1996', math.random(1500, 3000), 1)
end

function mob1996_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1996_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1996_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1996, 1, 'mob1996_Action')
RegisterUnitEvent(1996, 2, 'mob1996_Leave')
RegisterUnitEvent(1996, 3, 'mob1996_Kill')
RegisterUnitEvent(1996, 4, 'mob1996_Die')
